package com.hspedu.enum_;

/**
 * @author 谷其昊
 * @version 1.0
 * @date 2022/1/29
 * @time 16:34
 */
public class EnumMethod {
    public static void main(String[] args) {
        Season3 spring = Season3.SPRING;
        System.out.println(spring.name());

        System.out.println(spring.ordinal());
        System.out.println(Season3.WINTER.ordinal());

        System.out.println(Season3.values());
        for (Season3 value : Season3.values()) {
            System.out.print(value+" ");
        }
    }
}
